
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>DataConverge</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">    
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="js/xtreeForConfig.js"></script>
    <script>
    function addNewTag(parentTagId){
		//alert("to add new tag "+parentTagId);
		var newTagName=window.prompt("请输入新类别名称：","");
    	if(newTagName!=null && newTagName!=""){
    		document.location.href="subject.htm?action=addNewTag&parentId="+parentTagId+"&newTagName="+escape(newTagName);
		}
	}
	
	function addNextTag(tagId){
		var nextTagName=window.prompt("请输入下一个新类别名称：","");
    	if(nextTagName!=null && nextTagName!=""){
    		document.location.href="subject.htm?action=addNextTag&presentId="+tagId+"&nextTagName="+escape(nextTagName);
		}
	} 
		
	function removeTag(tagId){
	    if(window.confirm("确定删除此类别？","确定","取消")){	
			document.location.href="subject.htm?action=removeTag&tagId="+tagId;
		}
	} 
	
	function modifyTag(tagId){
		var tagName=window.prompt("请输入改后名称：","");
    	if(tagName!=null && tagName!=""){
			document.location.href="subject.htm?action=modifyTag&tagId="+tagId+"&tagName="+escape(tagName);
		}
	} 
    </script>
  </head>
  
  <body>
<div style="position: absolute; width: 70%; top: 0px; left: 100px; height: 100%; padding: 5px; overflow: auto;">
<SCRIPT type="text/javascript">
<c:out value='${script}' escapeXml="false" />
</script>
</div>
  </body>
</html>
